import axios from 'axios'
import React, { useState } from 'react';



 
  const get = async (url, headers) => {
    try {
      const response = await axios.get(url, { headers });
      return response.data;
    } catch (error) {
      throw new Error(error);
    }
  };
  const post = async (url, headers) => {
    try {
      const response = await axios.post(url, { headers });
      return response.data;
    } catch (error) {
      throw new Error(error);
    }
  };
  const delet = async (url, headers) => {
    try {
      const response = await axios.delete(url, { headers });
      return response.data;
    } catch (error) {
      throw new Error(error);
    }
  };








export default get||post||delet

// export default Api

